| 275 | $tradeaid = $insertid; | = | 275 | $tradeaid = $insertid; |
| 276 | } | 276 | } | |
| 277 | $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message)); | 277 | $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message)); | |
| 278 | $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'"); | 278 | $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'"); | |
| 279 | updatecredits($discuz_uid, $postattachcredits, count($attachments)); | 279 | updatecredits($discuz_uid, $postattachcredits, count($attachments)); | |
| 280 | } | 280 | } | |
| 281 | /* add for wiki */ | <> | ||
| 282 | if($wiki_flash==1){ | |||
| 283 | $tids[]=$tid; | |||
| 284 | require DISCUZ_ROOT.'./include/wikipost.inc.php'; | |||
| 285 | } | 281 | ||
| 286 | $replymessage = 'post_reply_succeed'; | = | 282 | $replymessage = 'post_reply_succeed'; |
| 287 | 283 | |||
| 288 | if($special == 2 && $allowposttrade && $thread['authorid'] == $discuz_uid && !empty($trade) && !empty($item_name) && !empty($item_price)) { | 284 | if($special == 2 && $allowposttrade && $thread['authorid'] == $discuz_uid && !empty($trade) && !empty($item_name) && !empty($item_price)) { | |
| 289 | 285 | |||
| 290 | if($tradetypes && $optiondata) { | 286 | if($tradetypes && $optiondata) { | |
| 291 | foreach($optiondata as $optionid => $value) { | 287 | foreach($optiondata as $optionid => $value) { |
(约在416行)
updatecredits($discuz_uid, $postattachcredits, count($attachments));
}
(下面加入)
/* add for wiki */
if($wiki_flash==1){
$tids[]=$tid;
require DISCUZ_ROOT.'./include/wikipost.inc.php';
}